package com.sample.flux;

import org.apache.dubbo.config.annotation.DubboReference;
import org.springframework.beans.factory.InitializingBean;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.sample.service.UserService;
import com.swak.annotation.FluxReference;
import com.swak.utils.Fmt;

@Service
public class TestFluxService implements InitializingBean {

	@Autowired
	private UserService userService1;
	@FluxReference
	private UserService userService2;
	@DubboReference
	private UserService userService3;

	@Override
	public void afterPropertiesSet() throws Exception {
		Fmt.out.append("#Spring Bean :: " + userService1 + "\n");
		Fmt.out.append("#Flux Bean :: " + userService2 + "\n");
		Fmt.out.append("#Dubbo Bean :: " + userService3 + "\n");
	}
}
